#!/bin/bash

function site_all() {
	for sitename in `ls /var/www/$PLATFORM/sites`
	do
		if [ $sitename != "all" ] && [ $sitename != "default" ]
		then
			/vagrant/sitescripts/site_export.sh $PLATFORM $sitename
		fi
	done
}

if [ $# -eq 1 ]
then
	PLATFORM=$1
	site_all
else
	echo "Usage: site_dbexport_all.sh <platform_name>"
	exit -1
fi